<?
$tmpway="../";
REQUIRE ("../../protect/connect.php");
session_start();
REQUIRE ("terrain_var.inc");

 $_OPTION=3;
  SESSION_REGISTER("_OPTION");
  
  
$VAR_TMP="<form name=\"form_choixterrain\" method=\"post\" action=\"../map.php\" target=\"MAP\">
  <select name=\"TERRAIN\">" ;
FOR ($i=1;$i<$TMP;$i++){
    $VAR_TMP.="<option value=\"$i\">$TER_IMAGE[$i]</option>";
}

     /*         <option selected>unnamed1</option>
    
    <option>unnamed2</option>      */
$VAR_TMP.="</select>";

$VAR_TMP.="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
  <tr>
    <td>Limite X </td>
    <td><input type=\"text\" name=\"terre_c_x1\"></td>
    <td><input type=\"text\" name=\"terre_c_x2\"></td>
  </tr>
</table>";

$VAR_TMP.="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
  <tr>
    <td>Limite Y </td>
    <td><input type=\"text\" name=\"terre_c_y1\"></td>
    <td><input type=\"text\" name=\"terre_c_y2\"></td>
  </tr>
</table>";

$VAR_TMP.="

<input name=\"SID\" type=\"hidden\" id=\"SID\" value=\"$SID\">
<input name=\"do_it\" type=\"hidden\" id=\"do_it\" value=\"1\">


<input type=submit name=Submit value=Envoyer>

</form>";

mysql_close();
ECHO $VAR_TMP;





?>
